#ifndef __IO_CONFIG_H__
#define __IO_CONFIG_H__

#include "io_init.h"

#include "compiler.h"
#include "daplink.h"
/*
SWD与JTAG对应关系
SWCLK   TCK
SWDIO   TMS
SWO     TDO

*/

// nRESET OUT Pin
#define nRESET_PIN_PORT              GPIOB
#define nRESET_PIN                   GPIO_PINS_0
#define nRESET_PIN_Bit               0

#define JTAG_TCK_PIN_PORT           GPIOB
#define JTAG_TCK_PIN                GPIO_PINS_15
#define JTAG_TCK_PIN_Bit            15

#define JTAG_TMS_PIN_PORT           GPIOB
#define JTAG_TMS_PIN                GPIO_PINS_14
#define JTAG_TMS_PIN_Bit            14

#define JTAG_OUT_PIN_PORT           GPIOB
#define JTAG_OUT_PIN                GPIO_PINS_12
#define JTAG_OUT_PIN_Bit            12

#define JTAG_IN_PIN_PORT            GPIOB
#define JTAG_IN_PIN                 GPIO_PINS_13
#define JTAG_IN_PIN_Bit             13

#define JTAG_TRST_PIN_PORT          GPIOB
#define JTAG_TRST_PIN               GPIO_PINS_11
#define JTAG_TRST_PIN_Bit           11

#define SWD_CLK_PIN_PORT      JTAG_TCK_PIN_PORT
#define SWD_CLK_PIN           JTAG_TCK_PIN
#define SWD_CLK_PIN_Bit       JTAG_TCK_PIN_Bit

#define SWD_DIO_PIN_PORT        JTAG_TMS_PIN_PORT
#define SWD_DIO_PIN             JTAG_TMS_PIN
#define SWD_DIO_PIN_Bit         JTAG_TMS_PIN_Bit




#endif
